package com.ruoyi.mall.common.mapper;

import com.ruoyi.mall.common.domain.DtsGrouponRules;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 团购规则Mapper接口
 * 
 * @author ruoyi
 * @date 2025-02-19
 */
@Mapper
public interface DtsGrouponRulesMapper 
{
    /**
     * 查询团购规则
     * 
     * @param id 团购规则主键
     * @return 团购规则
     */
    public DtsGrouponRules selectDtsGrouponRulesById(Long id);

    /**
     * 查询团购规则列表
     * 
     * @param dtsGrouponRules 团购规则
     * @return 团购规则集合
     */
    public List<DtsGrouponRules> selectDtsGrouponRulesList(DtsGrouponRules dtsGrouponRules);

    /**
     * 新增团购规则
     * 
     * @param dtsGrouponRules 团购规则
     * @return 结果
     */
    public int insertDtsGrouponRules(DtsGrouponRules dtsGrouponRules);

    /**
     * 修改团购规则
     * 
     * @param dtsGrouponRules 团购规则
     * @return 结果
     */
    public int updateDtsGrouponRules(DtsGrouponRules dtsGrouponRules);

    /**
     * 删除团购规则
     * 
     * @param id 团购规则主键
     * @return 结果
     */
    public int deleteDtsGrouponRulesById(Long id);

    /**
     * 批量删除团购规则
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDtsGrouponRulesByIds(Long[] ids);
}
